<?php
		// Init form
		$fattributes = array ('class' => 'form', 'id' => 'form' );
		echo form_open ( 'system_pages/add', $fattributes);
?>
		<table>
			<tr>
				<td colspan="2">
					<h3>Thêm mới trang hệ thống</h3>
				</td>
			</tr>
			<tr>
				<td width="100px"><?php echo form_label('Tiêu đề trang', 'title')?></td>
				<td><?php echo form_input ( 'page_title', '', array('class' => 'title', 'id' => 'title') ); ?></td>
			</tr>
			<tr>
				<td>Nội dung</td>
				<td><?php echo form_textarea ( 'content', '', array('class' => 'content', 'id' => 'content') ); ?></td>
			</tr>
			<tr>
				<td>Vị trí</td>
				<td><?php echo form_input ( 'position', '', array('class' => 'position', 'id' => 'position')); ?></td>
			</tr>
			<tr>
				<td>Trạng thái</td>
				<td><?php echo form_checkbox('status', TRUE, TRUE, ''); ?></td>
			</tr>
			<tr>
				<td></td>
				<td>
					<?php echo form_submit(array('name' => 'submit','value' => 'Hoàn tất','class' => 'button button_red'));?>
					<?php echo form_reset(array('name' => 'submit','value' => 'Làm lại','class' => 'button button_red'));?>
				</td>
			</tr>
		</table>
	</form>